#cloud-config
#
# coreos-install -d /dev/sda -C beta -c coreos-install-example.yaml
#
#

ssh_authorized_keys:
  - ssh-rsa AAAAB3NzaC1y.....

hostname: cnpvg50817038.pvgl.sap.corp

coreos:
  update:
    reboot-strategy: etcd-lock

  etcd:
      name: cnpvg50817038
      addr: 10.58.136.96:4001
      peer-addr: 10.58.136.96:7001
      # we don't rely on discovery, we join the cluster manually
      peers: 10.58.136.164:7001

  fleet:
      public-ip: 10.58.136.96
      metadata: name=cnpvg50817038,memory=48GB,role=build,namenode=1,journalnode=1

  units:
    - name: update-engine.service
      command: stop
    - name: rpc-mountd.service
      command: start
    - name: etcd.service
      command: start
    - name: fleet.service
      command: start
    - name: docker.service
      drop-ins:
        - name: 20-proxy.conf
          content: |
            [Service]
            Environment="http_proxy=http://proxy.wdf.sap.corp:8080"
            Environment="https_proxy=http://proxy.wdf.sap.corp:8080"
            Environment="no_proxy=localhost,10.58.136.166"
        - name: 50-insecure-registry.conf
          content: |
            [Service]
            Environment="DOCKER_OPTS=-H tcp://0.0.0.0:7777 --insecure-registry=0.0.0.0/0"
    - name: 00-eth0.network
      runtime: true
      content: |
        [Match]
        Name=enp8s0f0

        [Network]
        DNS=10.33.139.48
        Address=10.58.136.96/22
        Gateway=10.58.136.1